package com.pda.gongpin.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.gongpin.R;
import com.pda.gongpin.bean.HandingInListBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class HandingInListAdapter extends BaseAdapter<HandingInListBean> {
    public HandingInListAdapter(int layoutResId, @Nullable List<HandingInListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HandingInListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_entryNo,item.getEntryNo());
        helper.setText(R.id.tv_status,item.getEntryStatusName());
        helper.setText(R.id.tv_ownerCodeDesc,"货主："+item.getOwnerCodeDesc());
        helper.setText(R.id.tv_partner,"往来单位："+item.getPartner());
        helper.setText(R.id.tv_typeName,"单据类型："+item.getTypeName());
        helper.setText(R.id.tv_crossEntryNo,"关联入库单："+item.getCrossEntryNo());
        helper.setText(R.id.tv_createTime,"创建时间："+item.getCreateTime());

    }
}
